#ifndef SHAPES_H
#define SHAPES_H

#define SHAPE_ON 1
#define SHAPE_OFF 0

typedef enum {
    SHAPE_LINE = 0,
    SHAPE_RECT,
    SHAPE_CIRCLE,
    SHAPE_STAR,
    SHAPE_ARROW,
    SHAPE_NULL,
} shape_type_t;

extern shape_type_t current_shape;
extern lv_color_t   shape_color;
extern lv_point_t   start_pt;   // 手指按下

extern int shape_flag;

void draw_shape(lv_obj_t *canvas, lv_point_t p1, lv_point_t p2);
void canvas_press_cb(lv_event_t *e);
void canvas_release_cb(lv_event_t *e);

#endif

